﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <Header>
    <Title>EyExecuteResultEx</Title>
    <Author>jinlei</Author>
    <Shortcut>EyExecuteResultEx</Shortcut>
    <Description>EyExecuteResultEx</Description>
    <SnippetTypes>
      <SnippetType>SurroundsWith</SnippetType>
      <SnippetType>Expansion</SnippetType>
    </SnippetTypes>
  </Header>
  <Snippet>
    <Declarations>
      <Literal>
        <ID>EyExecuteResultEx</ID>
        <Default>EyExecuteResultEx</Default>
      </Literal>
    </Declarations>
    <Code Language="XML">
      <![CDATA[ExecuteResultEx<ArithNodeCheckResult ^> ^er = gcnew ExecuteResultEx<ArithNodeCheckResult ^>();
	PreprocessArithNodeCheckResult ^pr = gcnew PreprocessArithNodeCheckResult(this);
	pr->Uid = Guid::NewGuid();
	er->OutValue = pr;
	try
	{
		
	}
	catch (const std::exception& ce)
	{
		throw gcnew Exception(gcnew String(ce.what()));
	}
	catch (System::Exception ^ ex)
	{
		er->Ex = ex;
		er->Msg = ex->Message;
		er->Success = false;
		er->OutValue->CheckResult = -2;
    er->OutValue->ExecuteMsg = ex->Message;
	}
	finally
	{
		er->EndTime = DateTime::Now;
		this->CheckResult = er->OutValue->CheckResult;
		this->TimeSpanD = er->TimeSpan;
		this->ExecuteMsg = er->OutValue->ExecuteMsg;
	}
	return er;]]>
    </Code>
  </Snippet>
</CodeSnippet>